<script>
import list from '@/mixins/list'
import columns from './columns'
import expand from './expand-table'
export default {
    name: 'SysLogList',
    components: {
        expand
    },
    computed: {
        columns () {
            return columns(expand, this.onDownloadFile, this.namespace, 0)
        }
    },
    methods: {
      onDownloadFile (filePath, fileName) {
        window.location.href = `${fileUrl}/events/downFile?fileName=${fileName}&filePath=${filePath}`
      }
    },
    mixins: [list]
}
</script>
<template>
    <div class="normal">
        <Table :loading="fetching" :height="tableHeight" :data="data" border :columns="columns" stripe @on-selection-change="onSelectionChange">
        </Table>
    </div>
</template>

<style scoped>
.table-footer {
    margin-right: 30px;
}
</style>
